package com.iampzh.springvue.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
@TableName("sys_user")
public class User {
    @ExcelProperty("编号")
    @TableId(type= IdType.AUTO)
    private Integer id;
    @ExcelProperty("用户名")
    private String username;
    @JsonIgnore
    private String password;
    @ExcelProperty("邮箱")
    private String email;
    @ExcelProperty("电话")
    private String phone;
    @ExcelProperty("地址")
    private String address;
    @ExcelProperty("昵称")
    private String nickname;
    @ExcelProperty("用户头像")
    private String avaurl;
}
